home *** CD-ROM | disk | FTP | other *** search
- Path: sdrc.com!thor!scjones
- From: larry.jones@sdrc.com (Larry Jones)
- Newsgroups: comp.std.c
- Subject: Re: Valid floating-point constants ?
- Date: 15 Mar 1996 16:01:51 GMT
- Organization: SDRC Engineering Services
- Distribution: world
- Message-ID: <4ic49f$cq8@info1.sdrc.com>
- References: <4ibmd9$aq5@gate.seicom.net>
- NNTP-Posting-Host: thor.sdrc.com
- Originator: scjones@thor
-
- In article <4ibmd9$aq5@gate.seicom.net>, tydeman@tybor.com (Fred Tydeman) writes:
- > I have run across some tools and compilers that do not like:
- >
- > 08.5 09. 09e0
- >
- > They complain that those are invalid octal integers. I claim
- > that they are valid decimal floating-point constants. Who is right?
-
- You are. Each of those should be parsed as a single pp-number
- preprocessing token which has the form of a floating-constant, not an
- octal-constant. There is nothing in the syntax or semantics that
- disallows leading zeros in floating-constants.
- ----
- Larry Jones, SDRC, 2000 Eastman Dr., Milford, OH 45150-2789 513-576-2070
- larry.jones@sdrc.com
- ANY idiot can be famous. I figure I'm more the LEGENDARY type! -- Calvin
-